<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%--
  Created by IntelliJ IDEA.
  User: ADMIN
  Date: 2021/12/1
  Time: 3:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>防疫员管理</title>
</head>
<body>
<div align="center">
<form action="/findWorker">请输入工号或姓名：<input name="info" type="text"><input type="submit" value="查询"></form><br>
</div>
    <table align='center' border='1' cellspacing='0'>
    <tr>
        <td>id</td>
        <td>工号</td>
        <td>姓名</td>
        <td>工作地点</td>
    </tr>
    <c:forEach items="${users}" var="u" varStatus="st">
    <form action="/wUpdateView" method="post">
        <tr>
            <td>${u.id}</td>
            <td>${u.username}</td>
            <td>${u.name}</td>
            <td>${u.wPlace}</td>
            <td>
                <input name="id" type="text" value="${u.id}" hidden>
                <input type="submit" value="更改">
            </td>
        </tr>
    </form>
    </c:forEach>
</table>
<script>
    function update(id){

    }
</script>
</body>
</html>
